package sevensoft.创建型模式.原型模式.浅克隆;

public class Demo {
    public static void main(String[] args) throws CloneNotSupportedException {
        Student zs = new Student("zs",21);
        Student ls = new Student("ls",20);

        Citation citation = new Citation(zs);
        Citation citation1 = citation.clone();
        citation1.setStudent(ls);

        System.out.println(citation.getStudent().getName());
        System.out.println(citation1.getStudent().getName());

        System.out.println(citation.hashCode());
        System.out.println(citation1.hashCode());
    }
}
